
import json


def json_to_file(json_obj,filename):
    with open(filename, "w") as fp:
        json.dump(json_obj, fp)


def str_to_json(string):

    return json.loads(string)
